= form_for @order do |f|
  - if @order.errors.any?
    #error_explanation
      %h2= "#{pluralize(@order.errors.count, "error")} prohibited this order from being saved:"
      %ul
        - @order.errors.full_messages.each do |msg|
          %li= msg

  .field
    = f.label :name, t('.name')
    = f.text_field :name
  .field
    = f.label :address ,t('.address')
    = f.text_area :address
  .field
    = f.label :email,t('.email')
    = f.text_field :email
  .field
    = f.label :pay_type,t('.pay_type')
    = f.select :pay_type, payment_type_options,prompt: t('.prompt')
  .actions
    = f.submit 'Save'
